﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BuildStatus.Web.Models
{
    public class BuildLog
    {
        private List<BuildLogEntry> _logEntries = new List<BuildLogEntry>();

        public string Status { get; set; }
        public string URL { get; set; }
        public List<BuildLogEntry> LogEntries { get { return _logEntries; } }

        public void AddChild(BuildLogEntry child)
        {
            if (child == null)
                return;

            _logEntries.Add(child);
        }
    }
}
